const mysql = require('mysql');
const sqlConfig = require('./config/dbConfig');

const db = mysql.createPool({
    host:sqlConfig.HOST,
    port:sqlConfig.PORT,
    user:sqlConfig.USER,
    password:sqlConfig.PASSWORD,
    database:sqlConfig.DATABASE,
});

module.exports = db;